package control.action;

import java.util.List;

import model.VStuinfo;
import model.Varticle;
import business.factory.daos;


public class ArticlePreAction extends BaseAction {
	
	private int userid;
	

	/**
	 * 论文发表页数据传递
	 * @return
	 */
	public String execute() {
		VStuinfo stuinfo = daos.studao.getstuByuserId(userid);
		request.setAttribute("stuinfo", stuinfo);
		
		List<Varticle> artlist = daos.articledao.getarlist(stuinfo.getStuinfoid());
		request.setAttribute("artlist", artlist);
		return SUCCESS;
	}


	public int getUserid() {
		return userid;
	}


	public void setUserid(int userid) {
		this.userid = userid;
	}
	
	
	


}